<template>
  <view class="container">
    <el-dialog
      :title="title"
      :visible.sync="open"
      width="800px"
      :append-to-body="true"
      :modal-append-to-body="true"
    >
      <view> {{ form.newsContent }} </view>
    </el-dialog>
  </view>
</template>

<script>
import { getNews } from "@/api/business/news";
export default {
  name: "agreement",
  data() {
    return {
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      form: {},
    };
  },
  methods: {
    /** 读取操作 */
    onloadData(newsId) {
      getNews(newsId).then((response) => {
        this.form = response.data;
        this.open = true;
        this.title = "查看协议内容";
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
    },
  },
};
</script>

<style>
</style>